
		
-- D:\GOA\reslibrary\templete\res\page\page.pad.lua.xsl
gr_module("gm_xinbanchunzhongyun")

cgfscriptareaaddFrame = inherit(GmBase.FrameBase):name("cgfscriptareaaddFrame")

cgfscriptareaaddFrame.init = function (self,parent,frameid)

	local top = self
	local win = parent.hostWindow
	
	local fid = frameid or "templete_cgfscriptareaadd"
	GmBase.FrameBase.init_by_parent(self,parent,fid)
	
	
	-- areanav
	self.areanav = gm_xinbanchunzhongyun.navArea(self)
	
	-- areacgfscriptareaaddarea
	self.areacgfscriptareaaddarea = gm_xinbanchunzhongyun.cgfscriptareaaddareaArea(self)
	
		if self.areanav.set_left then
			self.areanav:set_left('back')
		elseif self.areanav.set then
			self.areanav:set('left','back')
		end
					
		if self.areanav.set_title then
			self.areanav:set_title('cgfscriptareaadd')
		elseif self.areanav.set then
			self.areanav:set('title','cgfscriptareaadd')
		end
					
		if self.areacgfscriptareaaddarea.set_title then
			self.areacgfscriptareaaddarea:set_title('cgfscriptareaadd')
		elseif self.areacgfscriptareaaddarea.set then
			self.areacgfscriptareaaddarea:set('title','cgfscriptareaadd')
		end
					
	
	self.mainarea = self.areacgfscriptareaaddarea
	
	self:set_style('display:none')

	
end


cgfscriptareaaddFrame.set_data_id = function(self,data)
	
	if self.areacgfscriptareaaddarea.set_data_id then
		self.areacgfscriptareaaddarea:set_data_id(data)
	end
				
end


cgfscriptareaaddFrame.set_data = function(self,data)

	self.data = data
	
	
	if self.areanav.set_data then
		self.areanav:set_data(data)
	end
			
	if self.areacgfscriptareaaddarea.set_data then
		self.areacgfscriptareaaddarea:set_data(data)
	end
			
end




cgfscriptareaaddFrame.on_show = function(self,key)
			
	if self.areacgfscriptareaaddarea.on_show then
		self.areacgfscriptareaaddarea:on_show(key)
	end
			
end


cgfscriptareaaddFrame.on_hide = function(self,key)
			
	if self.areacgfscriptareaaddarea.on_hide then
		self.areacgfscriptareaaddarea:on_hide(key)
	end		
			
end

	


	